﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Server.Common
{
    public class Log4Util
    {
        public Log4Util()
        {
            //log4net.Config.XmlConfigurator.Configure(new FileInfo($"{System.AppDomain.CurrentDomain.BaseDirectory}\\Config\\log4net.config"));
        }
        static Log4Util logInstance = null;

        public static Log4Util LogInstance
        {
            get
            {
                if (logInstance == null)
                {
                    logInstance = new Log4Util();

                }
                return logInstance;
            }
        }

        public void Error(Type type, object message, Exception exception = null)
        {
            //ILog log = LogManager.GetLogger(type);
            //if (exception == null)
            //    log.Error(message);
            //else
            //    log.Error(message, exception);
        }


        public void Info(Type type, object message, Exception exception = null)
        {
            //ILog log = LogManager.GetLogger(type);
            //if (exception == null)
            //    log.Info(message);
            //else
            //    log.Info(message, exception);
        }
    }
}
